(* node.mli
 *
 * This file is part of camEngine
 * 
 * camEngine - A 3d motor for ocaml
 * Copyright (C) 2009 DAVY Guillaume <davyg2@gmail.com>
 *
 * camEngine is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * camEngine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with camEngine.  If not, see <http://www.gnu.org/licenses/>.
 *)

open Vec3d;;
open Mesh;;
open Driver;;
open Matrice;;

type t=float
class node :
	object
	val mutable transform : matrice4
	method get_pos : vec3d
	method get_rot : vec3d
	method get_sca : vec3d
	method get_color : int
	
	method set_pos : vec3d -> unit
	method set_rot : vec3d -> unit
	method set_sca : vec3d -> unit
	method set_color : int -> unit
	
	method private updateTransform : unit
	
	method render : driver -> unit
end;;

class meshNode : mesh ->
	object
	inherit node
	method get_mesh : mesh
end;;


